package com.hzy.admin.models.vo.system;

import com.hzy.admin.repository.entity.system.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 账户信息 对象
 */
public class UserInfoVo {

    public UserInfoVo(String name, List<String> roleIds, String userId, boolean isAdministrator, SysUser sysUser) {
        this.name = name;
        this.roles = roleIds;
        this.userId = userId;
        this.isAdministrator = isAdministrator;
        this.sysUser = sysUser;
    }

    /**
     * 系统标题
     */
    private String appTitle;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 角色 集合
     */
    private List<String> roles;

    /**
     * 用户 Id
     */
    private String userId;

    /**
     * 是否超级管理员
     */
    private boolean isAdministrator;

    /**
     * 用户信息
     */
    private SysUser sysUser;

    /**
     * 菜单集合
     */
    private List<Map<String, Object>> menus;

    /**
     * 菜单功能集合
     */
    private List<Map<String, Object>> menuPowers;


    public String getAppTitle() {
        return appTitle;
    }

    public void setAppTitle(String appTitle) {
        this.appTitle = appTitle;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean isAdministrator() {
        return isAdministrator;
    }

    public void setAdministrator(boolean isAdministrator) {
        this.isAdministrator = isAdministrator;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public List<Map<String, Object>> getMenus() {
        return menus;
    }

    public void setMenus(List<Map<String, Object>> menus) {
        this.menus = menus;
    }

    public List<Map<String, Object>> getMenuPowers() {
        return menuPowers;
    }

    public void setMenuPowers(List<Map<String, Object>> menuPowers) {
        this.menuPowers = menuPowers;
    }
}
